package es.lfp.spain;

/**
 * 
 * @author daniel_ancin
 * class represent Player whit number, position and name
 */
public class Player {
	private static final int NUMERO_DORSAL_MENOR_CIEN = 100;
	private static final int NUMERO_DORSAL_MAYOR_CERO = 0;
	private int number;
	private String position;
	private String name;
	
	
	/**
	 * Constructor
	 * @param number
	 * @param position
	 * @param name
	 */
	public Player (int number,String position, String name) {
		this.number = number;
		this.position = position;
		this.name = name;
	}
	
	
//*******GETTERS AND SETTERS***////
	
	/**
	 * @return the number
	 */
	public int getNumber() {
		return number;
	}


	/**
	 * @param number the number to set
	 */
	public void setNumber(int number) {
		this.number = number;
		number=Integer.parseInt(null, 0);
		if ((number<NUMERO_DORSAL_MAYOR_CERO) || (number>=NUMERO_DORSAL_MENOR_CIEN)){
			
		}
		return;
	}
	


	/**
	 * @return the position
	 */
	public String getPosition() {
		return position;
	}


	/**
	 * @param position the position to set
	 */
	public void setPosition(String position) {
		this.position = position;
	}


	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}


	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "Player [number=" + number + ", position=" + position
				+ ", name=" + name + "]";
	}

	

}
